﻿<html>

	<head>

		<title>店铺用户管理</title>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">

		<link href="../../css/skin/default/style.css" rel="stylesheet" type="text/css" />
		<link href="../../js/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />

		<script src="../../js/lib/jquery/jquery-1.10.2.min.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerPopupEdit.js"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerForm.js" type="text/javascript"></script>
		<script src="../../js/lib/ligerUI/js/plugins/ligerTextBox.js" type="text/javascript"></script>
		<script src="../../js/lib/jquery.form.js" type="text/javascript"></script>
		<script src="../../js/lib/json2.js" type="text/javascript"></script>
		<script src="../../js/dialog.js"></script>
		<script src="../../js/JS/layout.js"></script>
		<script src="../../js/constants.js" type="text/javascript"></script>
		<script src="../../js/api.js" type="text/javascript"></script>
	<script type="text/javascript">
			var row= JSON.parse(unescape($api.getparastr("data"))) ;
			$(function() {
				$("form").ligerForm();

				if(!$api.isEmpty(row)) {
					initView();
				}
			});

			function initView() {
				$api.loadJsonToForm(row);
			 
			}

			function f_save() { 
				var ret = $("form").serializeObject();
				if($api.isEmpty(row)) {
					
					var obj = {
						"data":ret,
						"action":"add"
					}
					return obj;
				} else { 
					ret.RoleId=row.RoleId;
					var obj = {
						"data":ret,
						"action":"edit"
					}
					return obj;
				}

			}
		</script>
	</head>

	<body>

		<body class="mainbody">
			<form>
				<!--内容-->

				<div class="div-content">
					<div class="divhead">填写角色信息</div>
					<hr class="divline" />
					<dl>
						<dt>角色名</dt>
						<dd>
							<div style="float:left">
								<input type="text" id="RoleName" maxlength="16" name="RoleName" ltype="text" ligerui="{width:200}" validate="{required:true,minlength:4,maxlength:32}" />
							</div>
						 
						</dd>
					</dl>

					<dl>
						<dt>描述</dt>
						<dd>
							<div style="float:left">
								<input type="text" id="Memo" name="Memo" ltype="text" ligerui="{width:200}" validate="{required:true}" />
							</div>
						</dd>
					</dl>

				</div>
			</form>
		</body>

</html>